feat: Add Mixpanel tracking events for audit logs export flow (M2-10770) - #2225
Merged
Conversation
Moved date range functionality into a reusable component
…ePicker component Remove ExportDateType in favor of DateRangePickerType and replaced inline date range logic with the reusable DateRangePicker component. Duplicate date-related tests removed as they are now covered by DateRangePicker.test.tsx.
…ecryptedDataSucceed and moved each function props into shared props
… CSV export - Fix date format sent to API to be date-only instead of datetime - Fix API response type to match flat array structure - Update AuditEvent type to match actual API dot-notation keys - Refactor export to per-page CSV download to avoid memory accumulation - Add isExportRef guard to prevent duplicate exports - Add French translations - Added test
removed tsv boolean form value fill value now set as a variable for audit logs and response data svgs added | null for non-required values in auditEvent.ts to match backend
Contributor
Contributor
|
As discussed with Ade and Natalia, we will merge this to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
🔗 Jira Ticket M2-10770
Adds Mixpanel tracking events across the full audit logs export flow.
Changes include:
ExportAuditLogsDownloadevent, tracked when the user clicks the Export button in the audit logs settings popupExportAuditLogsSuccessfulevent, tracked when the audit logs CSV download completesExportAuditLogsFailedevent, tracked when the export encounters an error🪤 Peer Testing
Open an applet and click the Export button in the header. Select Audit Logs.
Expected outcome:
Export Audit Logs clickfires in Mixpanel.Select a date range and click the Export button in the modal.
Expected outcome:
Export Audit Logs downloadfires in Mixpanel.Allow the export to complete successfully.
Expected outcome:
Export Audit Logs Successfulfires in MixpanelSimulate a failure (e.g. disconnect network mid-export) and observe the error modal.
Expected outcome:
Export Audit Logs Failedfires in Mixpanel